<?php
declare (strict_types = 1);

namespace app\api\controller;

use app\api\service\MessageService;
use think\Response;

class Index
{
    public function index(): Response
    {
        date_default_timezone_set('PRC');
        $params = input('post.');
        $message = new MessageService();
        trace($params);
        $ret = $message->initMessage($params);
        return echoJson($ret);
    }

    public function test(){
        date_default_timezone_set('PRC');
        $params = input('post.');
        $message = new MessageService();
        return echoJson($message->aa($params));
    }
}
